package com.fate.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fate.domain.ProdPropValue;
import com.fate.mapper.ProdPropValueMapper;
import com.fate.service.ProdPropService;
import com.fate.service.ProdPropValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProdPropValueServiceImpl extends ServiceImpl<ProdPropValueMapper, ProdPropValue> implements ProdPropValueService{


    @Autowired
    private ProdPropValueMapper prodPropValueMapper;
    @Override
    public List<ProdPropValue> findPropValueByPropId(Long propId) {
        List<ProdPropValue> prodPropValues = prodPropValueMapper.selectList(new LambdaQueryWrapper<ProdPropValue>()
            .eq(ProdPropValue::getPropId,propId)
        );


        return prodPropValues;
    }
}
